package com.ssm.passenger.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ssm.common.utils.PageUtils;
import com.ssm.common.utils.Query;

import com.ssm.passenger.dao.SsmUserDao;
import com.ssm.passenger.entity.SsmUserEntity;
import com.ssm.passenger.service.SsmUserService;


@Service("ssmUserService")
public class SsmUserServiceImpl extends ServiceImpl<SsmUserDao, SsmUserEntity> implements SsmUserService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SsmUserEntity> page = this.page(
                new Query<SsmUserEntity>().getPage(params),
                new QueryWrapper<SsmUserEntity>()
        );

        return new PageUtils(page);
    }

}